PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-06-18 10:21:58.076757+00:00 (UTC)
In US/Central Time, this is 2024-06-18 05:21:58.076757-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/372b71ca2e586d4c08be155406eca612b36c9613e019f950893b99f066c64aec.png
We are just generating a random time serie here.
../../_images/75ba502dd043b5b37ee48f3cce34c1950183d75e1f5b50526eea33b0a1ec86ae.png
../../_images/c1ad094be171182d15b25620dee45f80be83ff8f2d95b7e7b7e7f38de1a03f3f.png